{% extends "base.html" %} {% block title %}Payment Transactions Ledger - NGO Foundation Admin{% endblock %} {% block body_class %}admin-portal-active{% endblock %} {% block content %}
{% if current_user.role and current_user.role.role_name == 'Finance' %} {% include "finance/_finance_sidebar.html" %} {% else %} {% include "admin/_admin_sidebar.html" %} {% endif %}
{% set topbar_title = 'Payment Transactions Ledger' %} {% set topbar_subtitle = 'Home / Finance / Gateway Transactions' %} {% include "admin/_admin_topbar.html" %}

Real-Time Transactions Ledger

Audit trail of all online checkouts, UPI payments, and monthly recurring debits.

Total Volume

{{ total_tx }}

Recorded Transactions
Settled Funds

₹{{ '{:,.2f}'.format(total_success_volume) }}

{{ success_tx }} Successful
Pending

{{ pending_tx }}

Awaiting Settlement
Failed

{{ failed_tx }}

Declines / Errors
{% for tx in transactions %} {% else %} {% endfor %}
Transaction Ref Donor Name & Contact Amount Type Gateway Provider UTR / Ref Date & Time Status Receipt / Action
{{ tx.transaction_id }} {% if tx.subscription_id %} Auto-Pay Mandate {% endif %}
{{ tx.donor_name }}
{{ tx.donor_email }}
{% if tx.donor_phone %}{{ tx.donor_phone }}{% endif %}
{{ tx.formatted_amount }} {% if tx.donation_type == 'recurring' %} Monthly {% else %} One-Time {% endif %} {{ tx.gateway }} {% if tx.provider_transaction_id %} {{ tx.provider_transaction_id }} {% elif tx.failure_reason %} {{ tx.failure_reason[:30] }}... {% else %} - {% endif %}
{{ tx.donated_at.strftime('%d-%b-%Y') if tx.donated_at else 'Recent' }}
{{ tx.donated_at.strftime('%I:%M %p') if tx.donated_at else '' }}
{% if tx.status == 'success' %} Success {% elif tx.status == 'pending' or tx.status == 'pending_verification' %} Pending {% elif tx.status == 'failed' %} Failed {% else %} {{ tx.status }} {% endif %} {% if tx.status == 'success' %} Receipt {% else %} - {% endif %}
No transaction records found matching filter.
{% endblock %}